package zju.lzy.service.user;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import zju.lzy.mapper.GeneralMapper;
import zju.lzy.mapper.UserMapper;

@Component
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public String getAvailableUserName() {
        int id = userMapper.getLastIncrement()+1;
        return "user-" + id;
    }
}
